a = [
    ("xx", "bb", 189),
    ("xx", "bb", 143),
    ("xx", "bb", 163),
]

# def demo(a_get):
#     print(a_get)
#     return a_get[2]

# a.sort(key=demo)
a.sort(key=lambda a_get: a_get[2])
# # print(a)
# L = "wdeq"
# b = "".join(sorted(L))
# c = reversed(L)
# # L.sort()
# print(str(tuple(reversed(L))))
